"""正则表达式匹配对应的字符串，该字符串为图形验证码存入redis中的key"""
import re
pattern = re.compile(u'^[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+')
str = u'0e269707-9cc1-478f-8d64-54a134d4cade'
print(pattern.search(str))